# coding:utf-8
__author__ = 'Miller'
__date__ = '2017/3/21 13:54 '
from django import forms
from captcha.fields import CaptchaField


class LoginForm(forms.Form):
    username = forms.CharField(min_length=3, required=True)
    password = forms.CharField(min_length=5, required=True)


class RegisterForm(forms.Form):
    email = forms.EmailField(required=True)
    password = forms.CharField(min_length=5, required=True)
    captcha = CaptchaField(error_messages={'invalid': u'验证码错误'})
